.sidebar {
    display: flex;
    flex-direction: column;

    > * + * {
        margin-top: var(--space-m);
    }
}

.heading {
    font-size: 1.17em;
    margin: 0 0 var(--space-s);
}

.metadata {
    > * + * {
        margin-top: var(--space-2xs);
    }
}

.date,
.msrv,
.license,
.bytes {
    display: flex;
    align-items: center;

    svg {
        flex-shrink: 0;
        margin-right: var(--space-2xs);
        height: 1em;
        width: auto;
    }
}

.date,
.msrv {
    [title], :global(.ember-tooltip-target) {
        cursor: help;
    }
}

.license {
    a {
        color: var(--main-color);
    }
}

.bytes {
    font-variant-numeric: tabular-nums;
}

.copy-help {
    font-size: 12px;
}

.copy-button,
.copy-fallback {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2xs) var(--space-xs);
    font-family: var(--font-monospace);
    font-size: 14px;
    line-height: 1.5em;
    color: var(--main-color);
    background: transparent;
    border-radius: var(--space-3xs);
    border: solid var(--space-4xs) var(--gray-border);

    span {
        flex: auto;
        display: block;
        word-break: break-word;
    }
}

.copy-button {
    text-align: start;
    cursor: pointer;

    &:hover {
        background-color: white;
    }
}

.copy-icon {
    flex-shrink: 0;
    height: 1.1em;
    width: auto;
    /* for slightly nicer alignment... */
    margin-top: -3px;
    margin-left: var(--space-2xs);
    opacity: 0;
    transition: opacity var(--transition-fast);

    .copy-button:hover & {
        opacity: 1;
    }
}

.selectable {
    user-select: text;
}

.links {
    > * + * {
        margin-top: var(--space-m);
    }
}

.more-versions-link,
.reverse-deps-link {
    composes: small from '../styles/shared/typography.module.css';
}

.categories {
    margin: 0;
    padding-left: 20px;
    line-height: 1.5;
}

.playground-button {
    composes: yellow-button small from '../styles/shared/buttons.module.css';
    justify-content: center;
    width: 220px;
}

.playground-help {
    composes: small from '../styles/shared/typography.module.css';
    max-width: 220px;
    text-align: justify;
    line-height: 1.3em;
}
